import request from '@/router/axios';

export const getList = (params) => {
  return request({
    url: '/api/blade-system/dept/list',
    method: 'get',
    params: {
      deptName:params,
    }
  })
}

export const getUserList = (current,size,params) => {
  return request({
    url: '/api/blade-system/dept/getUserList',
    method: 'get',
    params: {
      ...params,
      current,
      size
    }
  })
}

export const inserDept = (formdata) => {
  return request({
    url: '/api/blade-system/dept/inserDept',
    method: 'post',
    data: formdata
  })
}

export const updateUserdept = (json) => {
  return request({
    url: '/api/blade-system/dept/updateUserdept',
    method: 'post',
    params: {
      "json":json
    }
  })
}


